package com.rybbaby.tss.front.tssPayment.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.front.tssPayment.dao.IViewPaymentReturnPremiumDao;
import com.rybbaby.tss.front.tssPayment.entity.ViewPaymentReturnPremium;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description 缴费表数据库操作实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:22:55
 */
@Repository
public class ViewPaymentReturnPremiumDaoImp extends GenericDao<ViewPaymentReturnPremium> implements IViewPaymentReturnPremiumDao {


    @Override
    public ViewPaymentReturnPremium findByStuId(String stuId){
        ViewPaymentReturnPremium viewPaymentReturnPremium = this.findUniqueByProperty(ViewPaymentReturnPremium.class, "id", stuId);
        return viewPaymentReturnPremium;
    }

    @Override
    public List<ViewPaymentReturnPremium> getAllList() {
        return this.loadAll(ViewPaymentReturnPremium.class);
    }
}
